﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Collections.ObjectModel;
using System.Collections.Generic;


namespace SuperFox
{
    public class OrderReviewProductObject
    {


        public static readonly DependencyProperty NameProperty =
          DependencyProperty.Register("Name", typeof(String), typeof(OrderReviewProductObject),
                new PropertyMetadata("", new PropertyChangedCallback(NamePropertyChanged)));

        public string Name { get; set; }


        private static void NamePropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        {}

        public static readonly DependencyProperty IDProperty =
          DependencyProperty.Register("ID", typeof(int), typeof(OrderReviewProductObject),
                new PropertyMetadata(0, new PropertyChangedCallback(IDPropertyChanged)));

        public int ID { get; set; }


        private static void IDPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
        { }


        Dictionary<string, int> Months = new Dictionary<string, int>();

        


        public int this[string name]
        {
            get
            {
                if (Months.ContainsKey(name))
                {
                    return Months[name];
                }
                return 0;
            }
            set
            {
                Months[name] = value;
            }
        }


        


        
    
    }
}
